package com.itheima.date;

import java.util.Date;

public class Demo03 {

    public static void main(String[] args) {
        String s="1998-11-1 10:11:22";

        Date date = new Date();
        long time = date.getTime();
        long l = time - 24 * 60 * 60 * 1000;
        Date date1 = new Date(l);
        System.out.println(date1);


    }
}
